<?php global $config; ?>
<?php $this->headScript()->appendFile($config->JS_PATH . 'testimonials.js'); ?>
<section id="testimonials_middlecontainer">
    <div class="container" id="testimonials">
        <div class="arrow 01"><img src="<?php echo $config->IMAGE_PATH; ?>arrow_01.png" alt="arrow" /></div>
        <div class="subheader">
            <div class="subheader-icon"></div>
            <div class="subheader-text">Testimonials <span>Read Our Testimonials. Stay Informed.</span></div>
            <div class="subheader-separator"></div>
        </div>

        <div class="testimonials_content">
	    <?php if (count($this->testimonails) > 0): ?>
	    <ul class="testimonials_ul">
		<?php foreach($this->testimonails as $_testimonail):?>
		<li>
                    <div class="testimonials_div">
                        <p class="txtdesc"><span>"</span><?php echo $this->helper->getCollapseText($_testimonail->message, 266);?><span>"</span></p>
                        <p class="clientname">- <?php echo $_testimonail->client;?></p>
                        <div class="readmore_link"><a class="button fancybox" target="_blank" href="#<?php echo $_testimonail->id;?>">read more</a></div>
                        <div id="<?php echo $_testimonail->id;?>" class="popup-main" style=" display: none;">
                            <div class="testimonials_div_popup">
                                <p><span>"</span><?php echo $_testimonail->message;?><span>"</span></p>
                                <p class="clientname">- <?php echo $_testimonail->client;?></p>
                            </div>
                        </div>
                    </div>
                </li>
		<?php endforeach;?>
	    </ul>
		<div class="clear"></div>
	    <div class="paginator-cnt">
		 <div class="fright">
			 <?php echo $this->paginator->displayPages(); ?>
		 </div>
		 <div class="clear"></div>
	    </div>
	    <?php endif;?>
            <div class="clear"></div>
        </div>
    </div>
    <!-- end of container -->
</section> 